package com.myk.game.gobangchess;

import java.util.Map;

/**
 * 角色账户
 */
public class Account {

    private String idCode;
    private String nickName;
    private String createTime;

    public Account(String idCode, String nickName, String createTime) {
        this.idCode = idCode;
        this.nickName = nickName;
        this.createTime = createTime;
    }

    public Account(Map<String, String> itemMap) {
        this.idCode = itemMap.get("id_code");
        this.nickName = itemMap.get("nick_name");
        this.createTime = itemMap.get("create_time");
    }


    public String toDataString() {
        return idCode + "&" + nickName + "&" + createTime;
    }

    public String getIdCode() {
        return idCode;
    }

    public void setIdCode(String idCode) {
        this.idCode = idCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
